﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DemoJControls
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void closeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (jColorDialog1.ShowDialog() == DialogResult.OK)
            {
                jsColorPickerControl1.SelectedColor = jColorDialog1.SelectedColor;
            }
        }

        private void jsColorPickerControl1_SelectedColorChanged_1(object sender, EventArgs e)
        {
            jColorDialog1.SelectedColor = jsColorPickerControl1.SelectedColor;
        }
    }
}
